﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MensajeConversacion.aspx.cs" Inherits="eCampusWeb.MensajeConversacion" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">

    function borrar(id) {
        if (confirm('¿Desea eliminar este mensaje?')) {
            __doPostBack('BORRAR', id);
        }
    }

</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="volver"> 
    <asp:Button ID="Button1" CssClass="g-button g-button-red" runat="server" 
        Text="volver" onclick="Button1_Click" /> </div>
<h2><asp:Label ID="lbTitulo" runat="server" Text="Label"></asp:Label></h2>
    <br />
<h4><asp:Label ID="lbSubtitulo" runat="server" Text="Label"></asp:Label></h4>

<div id="Div1" class="cajaComentarios" style="padding-bottom:12px">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"   EmptyDataText="No existen mensajes"
        BorderColor="#CCCCCC" BackColor="White" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" ForeColor="Black" GridLines="Horizontal" Width="544px" 
        >
        <Columns>
        <asp:BoundField DataField="menDate" HeaderText="Fecha" ItemStyle-Width ="100" 
                        SortExpression="menDate" Visible="true" />          
                <asp:BoundField DataField="menEmisor" HeaderText="Enviado Por" ItemStyle-Width ="100" 
                        SortExpression="menEmisor" Visible="true" />
                        <asp:BoundField DataField="menMensaje" HeaderText="Mensaje"  HtmlEncode="false" 
                        SortExpression="menMensaje"  Visible="true" />


                        <asp:templatefield>
	                <itemtemplate>
                        <a href="javascript:borrar('<%# Eval("menId")%>')"><img src="Images/btBorrar.png" /></a>                    
	                </itemtemplate>
                    </asp:templatefield>
        </Columns>
        
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#d14836" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
        
    </asp:GridView>
</div>

<div  runat="server" id="DivCom" class="cajaComentarios" style="padding-bottom:12px; text-align:center;">
        <asp:TextBox ID="TextBox1" runat="server" Height="126px" Width="496px" TextMode="MultiLine"  >
        </asp:TextBox><br /><br /><asp:Button OnClick="Comentar" CssClass="g-button g-button-red"  ID="Button2" runat="server" Text="responder" />
        
        </div>
                        

                    
</asp:Content>
